projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
495b9ca
)
printeroptionwidget: Avoid a critical
author
Matthias Clasen
<mclasen@redhat.com>
Mon, 11 May 2020 18:26:31 +0000
(14:26 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Mon, 11 May 2020 18:26:31 +0000
(14:26 -0400)
The new_location can be NULL, as we clearly
knew earlier in the function. We've forgotten
about that by the time we unref it :(
gtk/gtkprinteroptionwidget.c
patch
|
blob
|
history
diff --git
a/gtk/gtkprinteroptionwidget.c
b/gtk/gtkprinteroptionwidget.c
index 7cff48186d6c555fd6413689fd6acfd9fed6a7d9..c291fe3ec2e72cf6d672f8ad210a4d205568a77f 100644
(file)
--- a/
gtk/gtkprinteroptionwidget.c
+++ b/
gtk/gtkprinteroptionwidget.c
@@
-526,7
+526,7
@@
dialog_response_callback (GtkDialog *dialog,
g_free (uri);
}
- g_
object_unref (
new_location);
+ g_
clear_object (&
new_location);
g_clear_object (&priv->last_location);
/* unblock the handler which was blocked in the filesave_choose_cb function */